package top.jiangqiang.qianyi.common.constants.http;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import top.jiangqiang.qianyi.common.base.http.SuccessStatus;

@Getter
@Slf4j
@AllArgsConstructor
public enum Success200Status implements SuccessStatus {

    OK(100, "操作成功");

    //业务状态码
    private final int code;
    private final String message;

    public int getRawStatusCode() {
        return 200;
    }

    public HttpStatus getHttpStatus() {
        return HttpStatus.NOT_FOUND;
    }
}
